package com.haifeng.myapplication;

import android.content.Context;

public class SDKClient1 {

    private static volatile  SDKClient1 instance;
    private static Context contexts;

    public static void init(Context context){
        contexts=context;
    }

    public static SDKClient1 getInstance() {
        if (instance==null){
            synchronized (SDKClient1.class){
                instance=new SDKClient1();
            }
        }
        return instance;
    }

    public SDKClient1(){
        System.out.println("sdkclient1 inint ,the context is " + contexts.getClass().getSimpleName());

    }

    public void  printApplication(){
        System.out.println("the context is "+contexts.getClass().getSimpleName());

    }



}
